<?php
require_once ('controller/Controller.php');
require_once ('model/UserTools.php');

class Admin_IndexController extends Controller
{
	
	public function run() {
		/*
		 * Caso d'uso alternativo/3: pagina protetta da login
		*/
		if (!UserTools::userIsLogged() || !UserTools::userIsRole('admin')) {
			$this->_redirect('admin_login');
		}
	}
}